-- GENERATED SPELL FOR [Margrave Dhakar] --


function spell0_31306(pUnit, Event) --@Swing,n/a--
pUnit:FullCastSpellOnTarget(5547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31306', 664, 1)
end

function Sorts_31306(pUnit, Event)
local choix_sorts_31306 = math.random(0, 0)
if choix_sorts_31306 == 0 then
pUnit:RegisterEvent('spell0_31306', 1, 1)
end
end

function mob31306_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31306', math.random(1500, 3000), 1)
end

function mob31306_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31306_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31306_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31306, 1, 'mob31306_Action')
RegisterUnitEvent(31306, 2, 'mob31306_Leave')
RegisterUnitEvent(31306, 3, 'mob31306_Kill')
RegisterUnitEvent(31306, 4, 'mob31306_Die')
